import requset from '@/utils/request'

//获取以及分类的数据
export const reqCategory1List=()=>requset({url:'/admin/product/getCategory1',method:'get'})

//获取以及分类的数据
export const reqCategory2List=(category1Id)=>requset({url:`/admin/product/getCategory2/${category1Id}`,method:'get'})

//获取以及分类的数据
export const reqCategory3List=(category2Id)=>requset({url:`/admin/product/getCategory3/${category2Id}`,method:'get'})

//获取商品基础属性
export const reqAttrInfoList=(category1Id,category2Id,category3Id)=>requset({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'})

//添加商品基础属性
export const addOrUpdateAttrInfoList=(data)=>requset({url:'/admin/product/saveAttrInfo',method:'post',data})

